package demo3;

public class My_Thread05 {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.println("通过Thread匿名内部类的方式创建线程....");
            }
        };
        //启动线程
        thread.start();
    }
}
